﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Pattern_State
{
    class Context
    {
        State state;
        public Context(State state)
        {
            this.state = state;
        }

        public void Replace(State state)
        { 
            this.state = state;
        }

        public void Request()
        {
            state.Handle();
        }
    }
}
